import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
import { initReactI18next } from "react-i18next";
import i18next from "i18next";
import EN from "./en/index.json";
import IND from "./indonesia/index.json";
import ZH from "./zh/index.json";
export var resources = {
    en: {
        translation: EN
    },
    ind: {
        translation: IND
    },
    zh: {
        translation: ZH
    }
};
var i18n = i18next.createInstance();
i18n.use(initReactI18next).init({
    // TODO: 印尼版现在也先换成默认英文
    lng: "en",
    fallbackLng: [
        "en"
    ],
    debug: true,
    interpolation: {
        escapeValue: false,
        formatSeparator: ","
    },
    resources: resources
});
// export const ENLocalKeyMap = Object.keys(EN).reduce(
//   (pre, next: keyof typeof EN) => {
//     pre[next] = next;
//     return pre;
//   },
//   {} as Record<keyof typeof EN, keyof typeof EN>,
// ) as unknown as LocalRecord<typeof EN, keyof typeof EN>;
// export const INDLocalKeyMap = Object.keys(IND).reduce(
//   (pre, next: keyof typeof IND) => {
//     pre[next] = next;
//     return pre;
//   },
//   {} as Record<keyof typeof IND, keyof typeof IND>,
// ) as unknown as LocalRecord<typeof IND, keyof typeof IND>;
/** 方便中文map */ export var LocalKeyMap = Object.keys(_object_spread({}, IND, EN)).reduce(function(pre, next) {
    pre[next] = next;
    return pre;
}, {});
export default i18n;

 //# sourceMappingURL=index.js.map